package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员关注教练门店表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ClubUsersShop extends Model<ClubUsersShop> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 会员id
     */
    private String userId;

    /**
     * 关注门店id
     */
    private String shopId;

    /**
     * 关注教练id
     */
    private String coachId;

    /**
     * 门店名称
     */
    private String shopName;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 教练名称
     */
    private String coachName;

    /**
     * 俱乐部id
     */
    private String clubId;

    /**
     * 教练头像
     */
    private String coachAvater;

    /**
     * 门店头像
     */
    private String shopAvater;

    /**
     * 0-关注教练 1-关注门店
     */
    private Integer type;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String SHOP_ID = "shop_id";

    public static final String COACH_ID = "coach_id";

    public static final String SHOP_NAME = "shop_name";

    public static final String CREATE_TIME = "create_time";

    public static final String COACH_NAME = "coach_name";

    public static final String CLUB_ID = "club_id";

    public static final String COACH_AVATER = "coach_avater";

    public static final String SHOP_AVATER = "shop_avater";

    public static final String TYPE = "type";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
